package com.xhb.campusservices.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xhb.campusservices.enums.FeedbackState;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 
 * @TableName feedback
 */
@TableName(value ="feedback")
@Data
public class Feedback implements Serializable {
    /**
     * 用户反馈主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 类型ID
     */
    private Integer feedbacktypeid;

    /**
     * 反馈主题
     */
    @NotBlank(message = "反馈主题不能为空")
    private String theme;

    /**
     * 反馈内容
     */
    @NotBlank(message = "反馈内容不能为空")
    private String content;

    /**
     * 发布人ID
     */
    private Long userid;

    /**
     * 反馈状态 0是已提交，1是已回复
     */
    private FeedbackState state;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date releasetime;

    /**
     * 回复内容
     */
    private String replycontent;

    /**
     * 回复时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date replytime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}